package com.ruoyi.consume.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 查看临时领用信息对象 seed_consume_temporary
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public class SeedConsumeTemporary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 领用编号：自动编号，主码 */
    private Long seedConsumeTemporaryId;

    /** 申请编号，外码 */
    @Excel(name = "申请编号，外码")
    private Long seedApplyTemporaryId;

    /** 领用量，默认为0 */
    @Excel(name = "领用量，默认为0")
    private Long consumeAmount;

    /** 领用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumeTime;

    /** 领用人 */
    @Excel(name = "领用人")
    private Long userId;
    /** 领用人 */
    private String userName;

    public void setSeedConsumeTemporaryId(Long seedConsumeTemporaryId)
    {
        this.seedConsumeTemporaryId = seedConsumeTemporaryId;
    }
    public Long getSeedConsumeTemporaryId()
    {
        return seedConsumeTemporaryId;
    }

    public void setSeedApplyTemporaryId(Long seedApplyTemporaryId)
    {
        this.seedApplyTemporaryId = seedApplyTemporaryId;
    }
    public Long getSeedApplyTemporaryId()
    {
        return seedApplyTemporaryId;
    }

    public void setConsumeAmount(Long consumeAmount)
    {
        this.consumeAmount = consumeAmount;
    }
    public Long getConsumeAmount()
    {
        return consumeAmount;
    }

    public void setConsumeTime(Date consumeTime)
    {
        this.consumeTime = consumeTime;
    }
    public Date getConsumeTime()
    {
        return consumeTime;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public Long getUserId()
    {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("seedConsumeTemporaryId", getSeedConsumeTemporaryId())
            .append("seedApplyTemporaryId", getSeedApplyTemporaryId())
            .append("consumeAmount", getConsumeAmount())
            .append("consumeTime", getConsumeTime())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
